package com.elvin.wx.beans;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 无线设备通信状态表
 * </p>
 *
 * @author zhenchl
 * @since 2022-01-14
 */
@TableName("fn_wireless_communication")
public class WireDevCommunication extends Model<WireDevCommunication> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 数据流id
     */
    private String datastreamId;
    /**
     * 设备id
     */
    private String devId;
    /**
     * 通信使能
     */
    private String commEnable;
    /**
     * 持续通信
     */
    private String keepComm;
    /**
     * 间隔压力值
     */
    private Float invlPress;
    /**
     * 间隔压力值百分比
     */
    private Float invlPressPerc;
    /**
     * 间隔次数
     */
    private Integer invlTimes;
    /**
     * 无线 通信间隔时间 单位: min(分钟)
     */
    private Integer wlCommSpace;
    /**
     * 无线 通信最小时间 单位: min(分钟)
     */
    private Integer wlMinTime;
    /**
     * 无线 通信单次通信最大时间 单位:  s(秒)
     */
    private Integer wlOneMaxTime;
    /**
     * 无线 读写间隔时间
     */
    private Integer wlNeedRwTime;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建日期", required =false,hidden=true)
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh",timezone = "GMT+8")
    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDatastreamId() {
        return datastreamId;
    }

    public void setDatastreamId(String datastreamId) {
        this.datastreamId = datastreamId;
    }

    public String getDevId() {
        return devId;
    }

    public void setDevId(String devId) {
        this.devId = devId;
    }

    public String getCommEnable() {
        return commEnable;
    }

    public void setCommEnable(String commEnable) {
        this.commEnable = commEnable;
    }

    public String getKeepComm() {
        return keepComm;
    }

    public void setKeepComm(String keepComm) {
        this.keepComm = keepComm;
    }

    public Float getInvlPress() {
        return invlPress;
    }

    public void setInvlPress(Float invlPress) {
        this.invlPress = invlPress;
    }

    public Float getInvlPressPerc() {
        return invlPressPerc;
    }

    public void setInvlPressPerc(Float invlPressPerc) {
        this.invlPressPerc = invlPressPerc;
    }

    public Integer getInvlTimes() {
        return invlTimes;
    }

    public void setInvlTimes(Integer invlTimes) {
        this.invlTimes = invlTimes;
    }

    public Integer getWlCommSpace() {
        return wlCommSpace;
    }

    public void setWlCommSpace(Integer wlCommSpace) {
        this.wlCommSpace = wlCommSpace;
    }

    public Integer getWlMinTime() {
        return wlMinTime;
    }

    public void setWlMinTime(Integer wlMinTime) {
        this.wlMinTime = wlMinTime;
    }

    public Integer getWlOneMaxTime() {
        return wlOneMaxTime;
    }

    public void setWlOneMaxTime(Integer wlOneMaxTime) {
        this.wlOneMaxTime = wlOneMaxTime;
    }

    public Integer getWlNeedRwTime() {
        return wlNeedRwTime;
    }

    public void setWlNeedRwTime(Integer wlNeedRwTime) {
        this.wlNeedRwTime = wlNeedRwTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "WireDevCommStatus{" +
        "id=" + id +
        ", datastreamId=" + datastreamId +
        ", devId=" + devId +
        ", commEnable=" + commEnable +
        ", keepComm=" + keepComm +
        ", invlPress=" + invlPress +
        ", invlPressPerc=" + invlPressPerc +
        ", invlTimes=" + invlTimes +
        ", wlCommSpace=" + wlCommSpace +
        ", wlMinTime=" + wlMinTime +
        ", wlOneMaxTime=" + wlOneMaxTime +
        ", wlNeedRwTime=" + wlNeedRwTime +
        ", createTime=" + createTime +
        "}";
    }
}
